import request from '@/utils/request'

export function getSourceList() {
  return request({
    url: '/system/metadata/source/getSourceList',
    method: 'get'
  })
}

export function fetchmetadataSourceList(data) {
  return request({
    url: '/system/demo/metadataSource/list',
    method: 'post',
    data
  })
}

export function getmetadataSource(id) {
  return request({
    url: '/system/demo/metadataSource/detail/' + id,
    method: 'get'
  })
}

export function createmetadataSource(data) {
  return request({
    url: '/system/demo/metadataSource/add',
    method: 'post',
    data
  })
}

export function updatemetadataSource(data) {
  return request({
    url: '/system/demo/metadataSource/update',
    method: 'post',
    data
  })
}

export function deletemetadataSource(ids) {
  return request({
    url: '/system/demo/metadataSource/delete',
    method: 'post',
    data: { ids }
  })
}

